package com.jahooty;

import com.jahooty.blocks.JahootyBlocks;

import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;

@Mod ( modid = JahootyMod.MODID, 
	   version = JahootyMod.VERSION, 
	   name = JahootyMod.MODID )
public class JahootyMod
{
	public static final String MODID = "JahootyMod";
    
	public static final String VERSION = "0.0.1";
	
	@Mod.Instance( value = "JahootyMod" )
	public static JahootyMod instance;
	
	@SidedProxy( clientSide="com.jahooty.client.ClientProxy",
			     serverSide="com.jahooty.CommonProxy")
    public static CommonProxy proxy;
	
	private static final JahootyBlocks mBlocks = JahootyBlocks.getInstance();
	
	@Mod.EventHandler
	public void preInit( FMLPreInitializationEvent event )
	{
		JahootyMod.mBlocks.initializeBlocks();
	}
	
	@Mod.EventHandler
	public void load( FMLInitializationEvent event )
	{
        JahootyMod.mBlocks.registerOresInInventory();

		EventManager eventManager = new EventManager();
		
		GameRegistry.registerWorldGenerator(eventManager, 0);
	}
	
	@Mod.EventHandler
	public void postInit( FMLPostInitializationEvent event )
	{
	}
}